[Top] [Prev] [Next] [Bottom] [Contents]

SaTextBox

Prints a text box form element to an HTML stream.

Synopsis

#include "SaRnHtml.h"
int SaTextBox(char* ename, char* evalue, 
					int size, int maxsize);

Arguments

ename
A string specifying the name of the text box form element. This string is converted to an HTML-compatible string. If ename is NULL, an empty string is used as the element name.
evalue
A string specifying the value of the text box form element. This string is converted to an HTML-compatible string. If evalue is NULL, an empty string is used as the element value.
size
An integer specifying the display size of the textbox. If size is greater than zero, the fragment:
SIZE="size"
is added to the HTML stream. Otherwise, the fragment is suppressed.
maxsize
An integer specifying the display maximum size of the textbox. If maxsize is greater than zero, the fragment:
MAXLENGTH="maxsize"
is added to the HTML stream. Otherwise, the fragment is suppressed.

Return Values

Returns an integer with a value of 0.

Description

Prints a text box form element to an HTML stream.

Example

The code fragment:

SaTextBox("Salary", "45000", 6, 8);
will write:

<INPUT TYPE="text" NAME="Salary" VALUE="45000" SIZE="6" 
MAXLENGTH="8">
to the output stream.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.